@include('home.UserCenter.header')
        <!-- ngView: -->
        <div ng-view="" role="main" class="ng-scope">
            <div class="profile-container container" profile-container="" page-name="changepassword"
            page-title="设置手机号">
                <div class="clearfix">
                    <div class="location" ng-style="{visibility: geohash ? &#39;&#39; : &#39;hidden&#39;}"
                    role="navigation" location="">
                        <span>
                            当前位置 : {{session('dizhi')}}
                        </span>

                       
                        <span ng-transclude="">
                           
                            <span class="ng-binding ng-scope">
                                修改手机号
                            </span>
                        </span>
                    </div>
                    <div search-input="">
                    </div>
                </div>
                @include('home.UserCenter.leftList')
                <div class="profile-panel" role="main">
                    <!-- ngIf: pageTitleVisible -->
                    <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope">
                        <span ng-bind="pageTitle" class="ng-binding">
                            修改手机号
                        </span>
                        <span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted">
                        </span>
                    </h3>
                    <!-- end ngIf: pageTitleVisible -->
                    <div class="profile-panelcontent" ng-transclude="">
                        <form class="changepwd ng-scope ng-pristine ng-valid" action="/modify/phone" method="post" ng-submit="changePwdSubmit()" novalidate="">
                        {{csrf_field()}}
                            <p class="changepwd-tip">
                                美食斋提示你：为了给您提供更好提供服务,请输入有效手机号！
                            </p>
                            <!-- ngIf: !firstSet -->
                             <span style="margin-left:150px;color:red">{{Session::get('oldphone')}}</span>   
                            <div class="formfield ng-isolate-scope" ng-class="{ &#39;validate-error&#39;: model.$hintTypes[property] === &#39;error&#39; }"
                            form-field="" label="原手机号" model="changePwdData" property="newPwd">
                                <label ng-bind="label" class="ng-binding">
                                    原手机号
                                </label>
                                <input type="text" name="oldphone" ng-model="changePwdData.newPwd" placeholder="请输入原手机号"
                                class="ng-scope ng-pristine ng-valid oldPwd">
                                <div class="formfield-hint">
                                    <span ng-class="{ &#39;icon-dot-error&#39;: model.$hintTypes[property] === &#39;error&#39;, &#39;icon-dot-warning&#39;: model.$hintTypes[property] === &#39;warning&#39; }"
                                    ng-bind="model.$hints[property]" class="ng-binding">
                                    </span>
                                </div>
                            </div>
                            <div class="formfield ng-isolate-scope" ng-class="{ &#39;validate-error&#39;: model.$hintTypes[property] === &#39;error&#39; }"
                            form-field="" label="新手机号" model="changePwdData" property="newPwd">
                                <label ng-bind="label" class="ng-binding">
                                    新手机号
                                </label>
                                <input type="text" name="newphone" ng-model="changePwdData.newPwd" placeholder="请输入新手机号"
                                class="ng-scope ng-pristine ng-valid">
                                <div class="formfield-hint">
                                    <span ng-class="{ &#39;icon-dot-error&#39;: model.$hintTypes[property] === &#39;error&#39;, &#39;icon-dot-warning&#39;: model.$hintTypes[property] === &#39;warning&#39; }"
                                    ng-bind="model.$hints[property]" class="ng-binding">
                                    </span>
                                </div>
                            </div>
                            <div class="formfield ng-isolate-scope" ng-class="{ &#39;validate-error&#39;: model.$hintTypes[property] === &#39;error&#39; }"
                            form-field="" label="确认手机号" model="changePwdData" property="confirmPwd">
                                <label ng-bind="label" class="ng-binding">
                                    确认手机号
                                </label>
                                <input type="text" name="rephone" ng-model="changePwdData.confirmPwd"
                                placeholder="确认手机号" class="ng-scope ng-pristine ng-valid">
                                <div class="formfield-hint">
                                    <span ng-class="{ &#39;icon-dot-error&#39;: model.$hintTypes[property] === &#39;error&#39;, &#39;icon-dot-warning&#39;: model.$hintTypes[property] === &#39;warning&#39; }"
                                    ng-bind="model.$hints[property]" class="ng-binding">
                                    </span>
                                </div>
                                
                            @if (count($errors) > 0)
                                @foreach ($errors->all() as $error)
                                <ul class="col-sm-10" style="margin-top:5px">
                                    <li class="form-control errors" style="color:red;margin-left:150px;margin-top:-5px;">{{ $error ? $error : (session::get('errors')) }}</li>
                                </ul>
                                @endforeach
                            </div>
                            @endif
                            </div>

                            <div class="form-group formfield ng-isolate-scope" ng-class="{ &#39;validate-error&#39;: model.$hintTypes[property] === &#39;error&#39; }"
                            form-field="">
                                <label ng-bind="label" class="ng-binding">
                                </label>
                                <button type="submit" class="btn-primary btn-lg ng-scope">
                                    确认
                                </button>
                                <div class="formfield-hint">
                                    <span ng-class="{ &#39;icon-dot-error&#39;: model.$hintTypes[property] === &#39;error&#39;, &#39;icon-dot-warning&#39;: model.$hintTypes[property] === &#39;warning&#39; }"
                                    ng-bind="model.$hints[property]" class="ng-binding">
                                    </span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

@include('home.UserCenter.footer')